package com.liujiaqi.lease.web.admin.service;

import com.liujiaqi.lease.model.entity.ApartmentInfo;
import com.liujiaqi.lease.web.admin.vo.apartment.ApartmentDetailVo;
import com.liujiaqi.lease.web.admin.vo.apartment.ApartmentItemVo;
import com.liujiaqi.lease.web.admin.vo.apartment.ApartmentQueryVo;
import com.liujiaqi.lease.web.admin.vo.apartment.ApartmentSubmitVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author liubo
* @description 针对表【apartment_info(公寓信息表)】的数据库操作Service
* @createDate 2023-07-24 15:48:00
*/
public interface ApartmentInfoService extends IService<ApartmentInfo> {

  /**
   * 新增或更新
   * @param apartmentSubmitVo
   */
  void saveOrUpdateApartment(ApartmentSubmitVo apartmentSubmitVo);

  /**
   * 分页查询
   * @param page
   * @param queryVo
   * @return
   */
  IPage<ApartmentItemVo> pageItem(Page<ApartmentItemVo> page, ApartmentQueryVo queryVo);

  /**
   * 根据id查询详情
   * @param id
   * @return
   */
  ApartmentDetailVo getDetailById(Long id);

  /**
   * 根据id删除详情
   * @param id
   */
  void removeApartmentById(Long id);
}
